package com.njitzx.controller.test;

import org.springframework.scheduling.annotation.Async;
import org.springframework.stereotype.Service;

@Service
public class testServiceImpl implements testService {
    @Async
    public  void  print() throws InterruptedException {
        Thread.sleep(3000);
        System.out.println("这是执行的异步方法"+System.currentTimeMillis());
    }
}
